﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TrainList.ascx.cs" Inherits="Job.Web.userControls.Personal.TrainList" %>

<script type="text/javascript">
    $(document).ready(function() {
    $.formValidator.initConfig({ formid: "aspnetForm", onerror: function(msg) { alert('校验没有通过，具体错误请看错误提示') } });
    $("#ctl00_maincontent_ctl00_tbBeginDate").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: "1900-01-01", max: "2100-01-01", type: "date", onerror: "<img alt='请输入开始时间' src='/Images/no_com.gif' width=15 height=15 />" });
    $("#ctl00_maincontent_ctl00_tbEndDate").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: "1900-01-01", max: "2100-01-01", type: "date", onerror: "<img alt='请输入结束时间' src='/Images/no_com.gif' width=15 height=15 />" });
    $("#ctl00_maincontent_ctl00_txtTranName").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: 1, max: 100, onerror: "<img alt='请输入培训名称' src='/Images/no_com.gif' width=15 height=15 />" }); //.defaultPassed();
    }
);
</script>

<table border="1px" bordercolor="#d8e1e7" style="border-style: solid; border-collapse: collapse"
    width="750" class="ResumeBaseTable" align="left">
    <tr>
        <td colspan="2" class="title_1">
            <asp:Label ID="lbledu" runat="server" Text="培训经历"></asp:Label>
        </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD" colspan="2" id="message" runat="server">
            &nbsp
        </td>
    </tr>
    <tr>
        <td colspan="2" height="50px">
            <asp:GridView ID="gvTran" runat="server" CssClass="table_style1" Width="100%" AutoGenerateColumns="False"
                OnRowCommand="gvTran_RowCommand" OnRowDeleting="gvTran_RowDeleting">
                <HeaderStyle CssClass="table_style1_th" />
                <Columns>
                    <asp:BoundField DataField="TranName" HeaderText="培训名称" ItemStyle-CssClass="table_style1_td">
                        <ItemStyle CssClass="table_style1_td"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="TranTime" HeaderText="时间" ItemStyle-CssClass="table_style1_td" ItemStyle-Width="18%">
                        <ItemStyle CssClass="table_style1_td"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="BookName" HeaderText="获得证书" ItemStyle-CssClass="table_style1_td" ItemStyle-Width="30%">
                        <ItemStyle CssClass="table_style1_td"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblid" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                    <asp:TemplateField InsertVisible="False" ShowHeader="False" ItemStyle-Width="10%">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit"
                                Text="编辑" CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>
                            &nbsp;&nbsp;
                            <asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                Text="删除" CommandArgument='<%# Eval("ID") %>' OnClientClick="return confirm('确认要删除这条培训吗?')"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                </Columns>
                <SelectedRowStyle BackColor="#EAECEC" />
                <AlternatingRowStyle BackColor="#F6F6F6" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td colspan="2" class="style2">
        </td>
    </tr>
    <tr>
        <td colspan="2" class="title_1">
            <asp:Label ID="lblMode" runat="server" Text=""></asp:Label>( <font color="#ec0000">*</font>
            为必填项)
        </td>
    </tr>
    <tr>
        <td class="ResumeLabelTD">
            &nbsp; 开始时间<span><font color="red">*</font> </span>
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="tbBeginDate" runat="server" CssClass="TextBox" Width="180px" MaxLength="10"></asp:TextBox><span
                id="ctl00_maincontent_ctl00_tbBeginDateTip"></span>
        </td>
    </tr>
    <tr>
        <td class="ResumeLabelEDUTD">
            &nbsp; 结束时间<span><font color="red">*</font> </span>
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="tbEndDate" runat="server" CssClass="TextBox" Width="180px" MaxLength="10"></asp:TextBox>
            <span id="ctl00_maincontent_ctl00_tbEndDateTip"></span>
        </td>
    </tr>
    <tr>
        <td class="ResumeLabelEDUTD">
            &nbsp; 培训名称<span><font color="red">*</font> </span>
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="txtTranName" runat="server" CssClass="TextBox" Width="400px"></asp:TextBox>
            <span id="ctl00_maincontent_ctl00_txtTranNameTip"></span>
        </td>
    </tr>
    <tr>
        <td class="ResumeLabelEDUTD">
            &nbsp; 获得证书
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="txtBook" runat="server" CssClass="TextBox" Width="219px" MaxLength="50"></asp:TextBox>
            <span id="ctl00_maincontent_ctl00_txtBookTip"></span>
        </td>
    </tr>
    <tr>
        <td class="ResumeLabelEDUTD">
            &nbsp; 说明
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="txtDesc" runat="server" Height="170px" TextMode="MultiLine" Width="400px"
                CssClass="TextBox" MaxLength="500"></asp:TextBox>
            <span id="ctl00_maincontent_ctl00_txtDescTip"></span>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <asp:Button ID="btnSave" runat="server" Text="保存教育经历" CssClass="btn_2k3" OnClick="btnSave_Click" />
        </td>
    </tr>
</table>
